package net.wang.cloud.user.feign;

import net.wang.cloud.dto.IOrderService;
import net.wang.cloud.dto.OrderDTO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(serviceId = "order", path = "/api/order")
public interface OrderFeign extends IOrderService {

    @Override
    @GetMapping(value = "/{id}")
    OrderDTO getOrder(@PathVariable(value = "id") Long id);
}
